<template>
	<view>
		<fireworks v-if="isReady" />
	</view>
</template>

<script>
	import fireworks from '@/components/sanshui-fireworks/sanshui-fireworks.vue'
	export default {
		data() {
			return {
				isReady: false
			}
		},
		components: {
			fireworks
		},
		onReady() {
			this.isReady = true;
			// this.$nextTick(() => {//后面记得销毁哈，不使用时设置为false
			// 	setTimeout(() => {
			// 		this.isReady = true;
			// 	}, 50)
			// })
		},
		mounted() {},
		methods: {

		}
	}
</script>

<style>
	canvas {
		position: fixed;
		top: 0px;
		left: 0px;
		width: 100vw;
		height: 100vh;
		pointer-events: none;
		background-color: gold;
	}
</style>
